<?php
//We can specify a custom config file by requreing it before we import magic
require('config/alertnate_config.php');
require('../Magic/magic.php');

//Load Smarty template engine
require('Smarty/Smarty.class.php');

//Create a new Smarty and userSystem object
$smarty = new Smarty();
$userSys = new UserSystem();

//Configure Smarty

$smarty->template_dir 	= $config['data_path'].'Templates/templates';
$smarty->compile_dir 	= $config['data_path'].'Templates/templates_c';
$smarty->cache_dir 		= $config['data_path'].'Templates/cache';
$smarty->config_dir 	= $config['data_path'].'Templates/configs';